package cn.shyouchi.wuguanjia.android.ui.event.report;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

import cn.shyouchi.wuguanjia.android.ui.event.post.PostEntity;
import cn.shyouchi.wuguanjia.android.ui.event.rank.EventRankEntity;

/**
 * Created by Eenie on 2016/11/18 at 13:42
 * Email: 472279981@qq.com
 * Des:
 */

public class ReportEntity {


    /**
     * resultCode : 0
     * resultMessage : [{"id":1,"reportingtime":"[\"13:56\", \"16:56\", \"19:56\"]","jetlag":"20分钟","service":{"id":6,"servicesname":"去日本按","starttime":17640,"endtime":32040},"postsetting":{"id":1,"post":"好咯里你好你好，啊"}}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean implements Parcelable {
        /**
         * id : 1
         * reportingtime : ["13:56", "16:56", "19:56"]
         * jetlag : 20分钟
         * service : {"id":6,"servicesname":"去日本按","starttime":17640,"endtime":32040}
         * postsetting : {"id":1,"post":"好咯里你好你好，啊"}
         */

        private int id;
        private String reportingtime;
        private String jetlag;
        private EventRankEntity.ResultMessageBean service;

        private PostEntity.ResultMessageBean postsetting;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getReportingtime() {
            return reportingtime;
        }

        public void setReportingtime(String reportingtime) {
            this.reportingtime = reportingtime;
        }

        public String getJetlag() {
            return jetlag;
        }

        public void setJetlag(String jetlag) {
            this.jetlag = jetlag;
        }

        public EventRankEntity.ResultMessageBean getService() {
            return service;
        }

        public void setService(EventRankEntity.ResultMessageBean service) {
            this.service = service;
        }

        public PostEntity.ResultMessageBean getPostsetting() {
            return postsetting;
        }

        public void setPostsetting(PostEntity.ResultMessageBean postsetting) {
            this.postsetting = postsetting;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.reportingtime);
            dest.writeString(this.jetlag);
            dest.writeParcelable(this.service, flags);
            dest.writeParcelable(this.postsetting, flags);
        }

        public ResultMessageBean() {
        }

        protected ResultMessageBean(Parcel in) {
            this.id = in.readInt();
            this.reportingtime = in.readString();
            this.jetlag = in.readString();
            this.service = in.readParcelable(EventRankEntity.ResultMessageBean.class.getClassLoader());
            this.postsetting = in.readParcelable(PostEntity.ResultMessageBean.class.getClassLoader());
        }

        public static final Parcelable.Creator<ResultMessageBean> CREATOR = new Parcelable.Creator<ResultMessageBean>() {
            @Override
            public ResultMessageBean createFromParcel(Parcel source) {
                return new ResultMessageBean(source);
            }

            @Override
            public ResultMessageBean[] newArray(int size) {
                return new ResultMessageBean[size];
            }
        };
    }
}
